﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CafeOnline.Common;

namespace CafeOnline.Domain.Entities {
    public partial class ProductGroup {
        public override ObjectKey EntityKey {
            get {
                return ObjectKey.FromParams(this.ProductGroupId);
            }
        }
        protected override void InitDefaultDateValue() {
            base.InitDefaultDateValue();
            if(!CreateDate.HasValue){
                CreateDate= DateTime.Now;
            }
            UpdateDate = DateTime.Now;
        }
    }
}
